package com.nightpiter.exceptions;

/**
 * StationBindingBuilderException class. this exception should be thrown when
 * there is no station element in the xml with the specified id attribute.
 * 
 * @author Eldar Abusalimov (eldar.abusalimov@gmail.com)
 */
@SuppressWarnings("serial")
public class StationBindingBuilderException extends BindingBuilderException {
	/**
	 * standard error message
	 */
	private static final String MESSAGE = "There is no station element with such id";

	/**
	 * constructor without arguments
	 */
	public StationBindingBuilderException() {
		super(MESSAGE);
	}

	/**
	 * @param detailMessage
	 */
	public StationBindingBuilderException(String detailMessage) {
		super(MESSAGE + " : " + detailMessage);
	}

	/**
	 * @param throwable
	 */
	public StationBindingBuilderException(Throwable throwable) {
		super(throwable);
	}

	/**
	 * @param detailMessage
	 * @param throwable
	 */
	public StationBindingBuilderException(String detailMessage,
			Throwable throwable) {
		super(MESSAGE + " : " + detailMessage, throwable);
	}

	/**
	 * @param id
	 * @param refAttribute
	 * @param refElement
	 * @param refId
	 */
	public StationBindingBuilderException(int id, String refAttribute,
			String refElement) {
		super(MESSAGE, id, refAttribute, refElement);
	}

}
